#ifndef BFLB_JOYSTICK_H  
#define BFLB_JOYSTICK_H

#include "bflb_adc.h"
#include "bflb_gpio.h"


struct bflb_joystick_attr{  
    struct bflb_adc_result_s result_x;  
    struct bflb_adc_result_s result_y;
    bool result_sw;
};

void bflb_joystick_init(uint8_t pin_x, uint8_t pin_y, uint8_t pin_sw);

void bflb_joystick_read(struct bflb_joystick_attr* values, uint8_t pin_sw);
  
#endif // BFLB_JOYSTICK_H
